<@master template="master/master-loan" title="合同下载">

<div class="detailsBox">
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>贷款基本信息
		</h3>
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">贷款单号:</td>
						<td width="35%">${loanapply.billCode}</td>
						<td align="right" class="bg" width="18%">客户名称:</td>
						<td>${loanapply.customeRname}</td>
					</tr>
					<tr>
						<td align="right" class="bg"><span class=" fs14">申请金额(元):</span></td>
						<td><span class=" fs14">${loanapply.loanaMount}</span></td>
						<td align="right" class="bg"><span class=" fs14">申请期限:
						</span></td>
						<td><span class=" fs14">${loanapply.loanTerm}个月</span></td>
					</tr>
					<tr>
						<td align="right" class="bg"><span class=" fs14">还款方式:
						</span></td>
						<td><span class=" fs14"><@select
								dataSouceType="OTOREPAYMENTWAY"
								value="${loanapply.repayMentway}" renderonly="true"/></span></td>
						<td align="right" class="bg"><span class=" fs14">利率:</span></td>
						<td><span class=" fs14"><#if
								(loanapply.loanrate)??>${(loanapply.loanrate*100)?string("0.000")}%</#if></span></td>
					</tr>
					<tr>
						<td align="right" class="bg">信贷经理姓名:</td>
						<td>${loanapply.operatorName}</td>
						<td align="right" class="bg">经办平台:</td>
						<td>${loanapply.ltdCode}-${loanapply.ltdName}</td>
					</tr>
					<tr>
						<td align="right" class="bg">送审银行:</td>
						<td><@select dataSouceType="BANKTYPEO2O"
							value="${loanapply.bankLoanName}" renderonly="true"/></td>
						<td align="right" class="bg">产品类型:</td>
						<td><@select dataSouceType="OTO_LOAN_TYPE_SB"
							value="${loanapply.loanType}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg">贷款申请日期:</td>
						<td><span class=" fs14"><#if
								(loanapply.createDate)??>${loanapply.createDate?string('yyyy-MM-dd')}</#if></span></td>
						<td align="right" class="bg">担保方式:</td>
						<td><@select dataSouceType="OTOGUARANTEEWAY"
							value="${loanapply.guarAnteeWay}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg">备注</td>
						<td colspan="3">${loanapply.remark}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
  <!-- 附件信息 begin -->
 <div class="detailsBox">
	  <div class="openBox">
		    <h3 class="mt20"><i class="jtIco"></i>附件信息
		    <a class="action-ajax-btn fr" data-action-html="#o2o_file" href="/o2oloanapply/datalist?loanApplyNo=${loanapply.loanapplyNo}">刷新</a>
		    </h3>
	       	<div class="dataBable">
	            <div id="o2o_file" class="action-ajax-load" data-url="/o2oloanapply/datalist?loanApplyNo=${loanapply.loanapplyNo}"></div>
			 </div>    
		</div>
		</div>
		<!-- 附件信息 end -->
  <!-- 银行卡信息 begin -->
<div class="detailsBox">
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>银行卡信息
		</h3>
		<div class="detaiTab">
			<form action="<@url value='/workflowsubmit/bank_update'/>"
				method="post" class="action-ajax-form">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td align="right" class="bg" width="18%"><span
								style="color: red;">*</span>银行卡账户名</td>
							<input type="hidden" class="tabInp" name="loanapplyno"
								value="${loanapply.loanapplyNo}">
									<input type="hidden" class="tabInp" name="referId"
								value="${loanapply.loanapplyNo}">
							<td width="25%">${loanUser.userFullName}</td>
							<td align="right" class="bg"><span style="color: red;">*</span>开户行全称:</td>
							<td><input name="bankZhiName"  id="bankZhiName"
								value="${loanapply.receiveBank}" size="55"
								type="text"/></td>
						</tr>
						<tr>
							<td align="right" class="bg"><span style="color: red;">*</span>银行卡号:</td>
							<td><input name="bankCardNo" class="tabInp w160 inputNum"
								maxlength="19" id="bankCardNo" type="text"
								value="${loanapply.bankAccount}"/></td>
						</tr>
						<tr>
							<td colspan="4" align="center"><input type="submit" value="保存"
								class="btn_auto_30 btn_blue" /><span class="red fs14 ml10"></span></td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
      </div>
      </div>
   <!-- 银行卡信息 end -->
   
		<div class=" mtb20 tac">
			<#if loanapply.bankLoanName=="BC"> 
			<#if (datalist?size>0)>
				<a class="btn_auto_30 btn_blue action-ajax-btn-confirm" href="/loanDetail/pushContract?loanapplyNo=${loanapply.loanapplyNo}">重新拉取合同</a>
				<#list datalist as data>
					<a class="btn_auto_30 btn_blue" target="_blank" href="/file/download?datalistno=${data.datalistNo}">下载${data.datalistName}</a>&nbsp;
				</#list>
			<#else>
				<span class="red fs14 ml10">未找到相关借款和借据合同,请等待中行返回合同</span>&nbsp;
			</#if>
			</#if>

		    <#if loanapply.bankLoanName=="GACZ"> 
					<a href="/checkBankInfo?loanapplyNo=${loanapply.loanapplyNo}" class="btn_auto_30 btn_blue action-ajax-btn" >国安村镇银行合同资料打印</a>
			</#if> 
			<#if loanapply.bankLoanName == "JCB">
				<@permission permissionName="JXBankPrint">
					<a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/toDownloadJX?loanapplyNo=${loanapply.loanapplyNo}'/>" target="_blank">江西银行合同资料打印</a>
					<a class="btn_auto_30 btn_blue" target="_blank" href="/accessory/help/interview?resourceCode=businessGuidelines" >下载空白连带责任书非配偶版</a>
				</@permission>
			</#if>
			<#if loanapply.bankLoanName == "SPDBGZ">
				<!-- <a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/toDownloadSPDBGZ?loanapplyNo=${loanapply.loanapplyNo}'/>" target="_blank">浦发广州银行合同资料打印</a> -->
				<a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/toDownloadSPDBGZ_PF?loanapplyNo=${loanapply.loanapplyNo}'/>" target="_blank">浦发广州银行合同资料打印</a>
			</#if>
			<#if loanapply.bankLoanName == "SPDBJN">
				<a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/toDownloadSPDBJN?loanapplyNo=${loanapply.loanapplyNo}'/>" target="_blank">浦发济南银行合同资料打印</a>
			</#if>
			<#if loanapply.bankLoanName == "ZLB">
				<a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/toDownloadSPDBGZ_zl?loanapplyNo=${loanapply.loanapplyNo}'/>" target="_blank">中旅银行合同资料打印</a>
			</#if>
			<a class="btn_auto_30 btn_blue" target="_blank" href="/accessory/help/interview?resourceCode=businessGuidelines" >下载空白合同</a>&nbsp;
		</div>
</@master>